home *** CD-ROM | disk | FTP | other *** search
/ Gurewich OLE Controls for Visual Basic 4 / Gurewich OLE Controls for Visual Basic 4.iso / ocxprog / programs / ch17 / myclock / myclock.odl < prev    next >
Encoding:
Microsoft Object Description Language  |  1995-06-15  |  2.2 KB  |  75 lines

  1. // myclock.odl : type library source for OLE Custom Control project.
  2.  
  3. // This file will be processed by the Make Type Library (mktyplib) tool to
  4. // produce the type library (myclock.tlb) that will become a resource in
  5. // myclock.ocx.
  6.  
  7. #include <olectl.h>
  8.  
  9. [ uuid(85A87843-D415-101B-96E3-0020AF38F4BB), version(1.0),
  10.   helpstring("Myclock OLE Custom Control module") ]
  11. library MyclockLib
  12. {
  13.     importlib(STDOLE_TLB);
  14.     importlib(STDTYPE_TLB);
  15.  
  16.     //  Primary dispatch interface for CMyclockCtrl
  17.  
  18.     [ uuid(85A87841-D415-101B-96E3-0020AF38F4BB),
  19.       helpstring("Dispatch interface for Myclock Control") ]
  20.     dispinterface _DMyclock
  21.     {
  22.         properties:
  23.             // NOTE - ClassWizard will maintain property information here.
  24.             //    Use extreme caution when editing this section.
  25.             //{{AFX_ODL_PROP(CMyclockCtrl)
  26.             [id(DISPID_BACKCOLOR), bindable, requestedit] OLE_COLOR BackColor;
  27.             [id(DISPID_FORECOLOR), bindable, requestedit] OLE_COLOR ForeColor;
  28.             [id(1)] long UpdateInterval;
  29.             [id(DISPID_FONT), bindable] IFontDisp* Font;
  30.             //}}AFX_ODL_PROP
  31.  
  32.         methods:
  33.             // NOTE - ClassWizard will maintain method information here.
  34.             //    Use extreme caution when editing this section.
  35.             //{{AFX_ODL_METHOD(CMyclockCtrl)
  36.             [id(DISPID_REFRESH)] void Refresh();
  37.             [id(2)] void Beep();
  38.             //}}AFX_ODL_METHOD
  39.  
  40.             [id(DISPID_ABOUTBOX)] void AboutBox();
  41.     };
  42.  
  43.     //  Event dispatch interface for CMyclockCtrl
  44.  
  45.     [ uuid(85A87842-D415-101B-96E3-0020AF38F4BB),
  46.       helpstring("Event interface for Myclock Control") ]
  47.     dispinterface _DMyclockEvents
  48.     {
  49.         properties:
  50.             //  Event interface has no properties
  51.  
  52.         methods:
  53.             // NOTE - ClassWizard will maintain event information here.
  54.             //    Use extreme caution when editing this section.
  55.             //{{AFX_ODL_EVENT(CMyclockCtrl)
  56.             [id(1)] void NewMinute();
  57.             [id(DISPID_CLICK)] void Click();
  58.             [id(DISPID_DBLCLICK)] void DblClick();
  59.             //}}AFX_ODL_EVENT
  60.     };
  61.  
  62.     //  Class information for CMyclockCtrl
  63.  
  64.     [ uuid(85A87840-D415-101B-96E3-0020AF38F4BB),
  65.       helpstring("Myclock Control") ]
  66.     coclass Myclock
  67.     {
  68.         [default] dispinterface _DMyclock;
  69.         [default, source] dispinterface _DMyclockEvents;
  70.     };
  71.  
  72.  
  73.     //{{AFX_APPEND_ODL}}
  74. };
  75.